

<?php 
	// fuck the codeigniter special php syntax
	//if($this->session->flashdata('message')) { ?>
    <p><? //$this->session->flashdata('message'); ?></p>
<?php //} ?>

<div id="login_form">

		
		<?php //$this->session->flashdata
		// create form tag with the specific action and using the post method 
		echo form_open('Login/index/'); 
		?>

		<?php
		// create the lines arround the form
		echo form_fieldset('Login Form');
		?>

		<div class="textfield">
            <?php echo form_label('User:');?>
            <?php echo form_input('user_name');?>
        </div>

        <div class="textfield">
            <?php echo form_label('Pass:');?>
            <?php echo form_password('user_pass');?>
        </div>

        <div class="buttons">
            <?php echo form_submit('login', 'Login');?>
        </div>

		<?php 
		// close the fieldset
		echo form_fieldset_close(); 
		?>
		
		<?php
		// close the tag form 	
		echo form_close();
		
		// display the validation errors
		echo validation_errors();
		echo $this->session->userdata('item');
		?>
</div>

